//
//  SchoolRecordBarChartLabel.m
//  Learn
//
//  Created by zyl_macbookpro on 2024/4/7.
//  Copyright © 2024 迟建国. All rights reserved.
//

#import "SchoolRecordBarChartLabel.h"
#import "SchoolRecordBarColor.h"
@implementation SchoolRecordBarChartLabel
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        [self setLineBreakMode:NSLineBreakByWordWrapping];
        [self setMinimumScaleFactor:5.0f];
        [self setNumberOfLines:1];
        [self setFont:[UIFont boldSystemFontOfSize:9.0f]];
        [self setTextColor: [SchoolRecordBarColor darkGrayColor]];
        [self setTextAlignment:NSTextAlignmentCenter];
        self.backgroundColor = [UIColor clearColor];
        self.userInteractionEnabled = YES;
    }
    return self;
}

@end
